//
//  KABCosDetComHeaderHFView.m
//  kabu
//
//  Created by XiangDongMBP on 2017/2/15.
//  Copyright © 2017年 East. All rights reserved.
//

#import "KABCosDetComHeaderHFView.h"
#import "KABModel.h"
#import "UIColor+XDHex.h"
#import "GlobalHeader.h"

@implementation KABCosDetComHeaderHFView

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end


@implementation KABCosDetComHeaderHFView (MallProdcutDetail)
- (void)configViewWithProDetail:(KABMallProDetail *)proDetail section:(NSInteger)section {

    if (section == 0) {
//        NSDictionary * attsDic = @{NSForegroundColorAttributeName: [UIColor xd_colorWithHex:KABGlobalColorTitleFont],
//                                   NSFontAttributeName: [UIFont systemFontOfSize:18]};
//        NSAttributedString *aStr = [[NSAttributedString alloc] initWithString:proDetail.product_name attributes:attsDic];
//        self.titleLabel.attributedText = aStr;
        self.titleLabel.font = [UIFont systemFontOfSize:18.0];
        self.titleLabel.text = proDetail.product_name;
    } else {
//        self.titleLabel.attributedText = nil;
        self.titleLabel.font = [UIFont systemFontOfSize:14.0];
        self.titleLabel.text = @"商品详情";
    }
    
    self.leftView.hidden = (section == 0);
}
@end
